package de.pnp.pnptris;

import java.awt.Color;

/**
 * A class representing a single Box of a tetris Board.
 * For example:
 *
 * @author  Dominik Alexamder
 * @version 0.1
 */
public class Box {
	
	/**
	 * The value representing the state of the Box.
	 */
	private boolean filled = false;
	
	/**
	 * The color of the Box.
	 */
	private Color color = null;
	
	/**
	 * Getter for the state of the Box.
	 * 
	 * @return State of the Box.
	 */
	public boolean isFilled() {
		return filled;
	}
	
	/**
	 * Sets the state of the Box with the specified color.
	 * 
	 * @param color Color to fill the Box.
	 */
	public void fill(Color color) {
		this.color = color;
		filled = true;
	}
	
	/**
	 * Getter for the color of the Box.
	 * 
	 * @return The color of the Box.
	 */
	public Color getColor() {
		return color;
	}
}
